package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author 徐超
 * @Create 2024/10/12 21:01
 */

@SpringBootApplication
@EnableDiscoveryClient  //nacos注册
@EnableFeignClients //服务调用
//设置扫描包规则，为了加载SwaggerConfig配置类。如果不改那么这个启动类只能扫描你当前项目中的类，别的启动类扫描不到
@ComponentScan(basePackages = {"com.atguigu"})
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
